//
//  HistorySignTableview.m
//  BOSS-SOOC
//
//  Created by houshijia on 16/9/2.
//  Copyright © 2016年 Gcx. All rights reserved.
//

#import "HistorySignTableview.h"

@implementation HistorySignTableview

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
    if (self = [super initWithFrame:frame style:style]) {
        self.delegate = self;
        self.dataSource = self;
    }
    return self;
}
#pragma mark- Tableview Delegate&Datasource

-(NSInteger)numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 100;
}
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"history"];
    cell.textLabel.text =  @"history";
    return cell;
}
-(UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    
    return self.headerView;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return ScaleSize(156);
}

#pragma mark- 懒加载控件
-(UIView *)headerView{
    if (!_headerView) {
        _headerView = [[SignTopView alloc]initWithStyle:SignTopStyleOnlySearch];
    }
    return _headerView;
}



@end
